<?php

/**
 * Created by PhpStorm.
 * User: Lenovo
 * Date: 2019/4/19
 * Time: 16:32
 */
abstract class CheckLoginAction extends Action{
    function _initialize(){
        session_start();
        if(empty($_SESSION['userId'])){
            header('HTTP/1.1 403');
            header("content-type:text/html;charset=utf-8");
            die('未登录');
        }
    }
}